package com.ziyun.erp.modules.configPointSku.service.impl;

import com.utility.StringUtils;
import io.renren.common.utils.StringUtil;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.ziyun.erp.modules.configPointSku.dao.ConfigPointSkuDao;
import com.ziyun.erp.modules.configPointSku.entity.ConfigPointSkuEntity;
import com.ziyun.erp.modules.configPointSku.service.ConfigPointSkuService;


@Service("configPointSkuService")
public class ConfigPointSkuServiceImpl extends ServiceImpl<ConfigPointSkuDao, ConfigPointSkuEntity> implements ConfigPointSkuService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        String pointName = StringUtil.getRequestParamString("pointName");
        Page<ConfigPointSkuEntity> page = this.selectPage(
                new Query<ConfigPointSkuEntity>(params).getPage(),
                new EntityWrapper<ConfigPointSkuEntity>()
//                .like(StringUtils.isNotBlank(pointName),"pointName",pointName)
        );

        return new PageUtils(page);
    }

    @Override
    public Page<ConfigPointSkuEntity> queryPageNew(Page<ConfigPointSkuEntity> page, Map<String, Object> params) {
        page.setRecords(this.baseMapper.queryNewPage(page,params));
        return page;
    }


}
